package java8_17;

/**
 * @author oldliu
 * @since 1.0
 */
public class SchoolTest {
    public static void main(String[] args) {
        School s=new School();//创建了一个School对象。。。
        //对象的属性赋值
        s.name="合肥大学";
        s.labs=199;
        s.classrooms=3000;
        s.students=59999;
        s.teachers=20;
        //读取
        System.out.println("这个学校："+s.name);
        //System.out.println(s.labs+","+s.classrooms);
        //System.out.println(s);
        s.show();

        School s2=new School();
        s2.name="安徽大学";
        s2.show();
        School s3=null;
        System.out.println(s3);
        s3.name="包河大学";
        s3.classrooms=33;
        System.out.println("有教室数目："+s3.classrooms);
    }
}
